Repository navigation
fix: serve telemetry growth as null beside a withheld count - #78
Merged
Merged
Conversation
/api/telemetry served wauGrowth7d, mauGrowth30d and engagedGrowth30d as the difference of the stored counts. A withheld count is stored as NULL, which the subtraction took as 0, so a change figure was served beside a count shown as withheld: a latest wau of NULL beside a prior of 25 gave -25, and a count of 9 left in an older store beside 25 gave -16. With no earlier snapshot, each figure was served as 0. Each figure is now computed from the floored counts on both sides (measuredChange in lib/telemetry-withheld.js) and is null when either side is withheld or no earlier snapshot is stored: never 0 and never the raw difference. Two measured counts still give their difference, so 138 beside 93 gives 45. The dashboard already leaves such a change out, and no other served field changes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request lands 1 commit in
lib/,pages/api/andtest/.Included
Verified on this exact tree
npm ci --no-audit --no-fund(Node 24.22.1): exit 0, added 205 packagesnpm run build(Next.js 16.4.5): exit 0,✓ Compiled successfullynode --test --test-concurrency=4 test/*.test.js(19 test files): tests 288, pass 288, fail 0, cancelled 0, skipped 0, todo 0git status --porcelainafter the build and the test run: no outputpackage.jsondefines no script for themNot included
None
Closes
None
How to merge
Rebase and merge, so that each change stays its own commit on
main.